import 'dart:convert';

List<AssessmentBookType> assessmentBookTypeFromJson(String str) =>
    List<AssessmentBookType>.from(
        json.decode(str).map((x) => AssessmentBookType.fromJson(x)));

String assessmentBookTypeToJson(List<AssessmentBookType> data) =>
    json.encode(List<dynamic>.from(data.map((x) => x.toJson())));

class AssessmentBookType {
  AssessmentBookType({
    this.displayName,
    this.orderNumber,
    this.assessmentType,
  });

  String? displayName;
  int? orderNumber;
  String? assessmentType;

  factory AssessmentBookType.fromJson(Map<String, dynamic> json) =>
      AssessmentBookType(
        displayName: json["displayName"],
        orderNumber: json["orderNumber"],
        assessmentType: json["assessmentType"],
      );

  Map<String, dynamic> toJson() => {
        "displayName": displayName,
        "orderNumber": orderNumber,
        "assessmentType": assessmentType,
      };
}
